﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

//Write a program that finds the biggest of three integers using nested if statements.


namespace _03BiggestOfThree
{
    class _03BiggestOfThree
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Enter three integers(positive or neagtive):");
            Console.Write("a = ");
            string firstValue = Console.ReadLine();
            int a = int.Parse(firstValue);
            Console.Write("b = ");
            string secondValue = Console.ReadLine();
            int b = int.Parse(secondValue);
            Console.Write("c = ");
            string thirdValue = Console.ReadLine();
            int c = int.Parse(thirdValue);

            if ((a == b) && (a > c))
            {
                Console.WriteLine("A and b are equal and greater than c.");
            }
            else if ((a == c) && (a > b))
            {
                Console.WriteLine("A and c are equal and and are both greater than b.");
            }
            else if ((b == c) && (c > a))
            {
                Console.WriteLine("B and c are equal and are both bigger than a.");
            }
            else if ((a > b) && (a > c))
            {
                Console.WriteLine("The biggest number is a({0}).", a);
            }
            else
            {
                if ((b > a) && (b > c))
                {
                    Console.WriteLine("The biggest number is b({0}).", b);
                }
                else
                {
                    if ((c > a) && (c > b))
                    {
                        Console.WriteLine("The biggest number is c({0}).", c);
                    }
                }
            }
        }
    }
}
